<template>
    <el-form ref="form" :model="form" label-width="80px" size="mini">
        <label >消息</label><br></br>

        <el-form-item label="消息内容" prop="message">
            <el-input type="textarea" v-model="form.message" readonly></el-input>
        </el-form-item>
        
    </el-form>
</template>


<script>
import showMessageApi from '@/api/show'

export default {
    
    data() {
      return {
        form: {
          message: '',
        },
        id:'',
        BASE_API: process.env.BASE_API,
      }
    },
    created(){
      debugger
      console.log(this.$route.query)
       // 获取路由id值
      if (this.$route.query && this.$route.query.id) {
        this.id = this.$route.query.id
      }
      this.getMessage();
    },
    methods: {
      getMessage() {
        showMessageApi.showMessage(this.id)
          .then(response=>{
            this.form.message=response.data.content
            console.log("message:====>",response.data)
          })
        
      },

    }
}
</script>

<style>

</style>

